package cn.kilo.infrastructure.persistent.dao;

import cn.kilo.domain.model.order.entity.OrderJudgeEntity;
import cn.kilo.domain.model.order.entity.UserEntity;
import cn.kilo.infrastructure.persistent.po.Judge;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IJudgeDao {
    int getJudge(@Param("order") OrderJudgeEntity orderJudgeEntity);

    int insert(@Param("order") OrderJudgeEntity orderJudgeEntity);

    List<Judge> getBadJudge(@Param("type") String type);

    int addProblem(@Param("userEntity") UserEntity userEntity);

    int updateProblem(@Param("judgeId") String judgeId, @Param("image") String image);
}
